package com.ruoyi.deeplearn.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.deeplearn.mapper.DeepForecastResultMapper;
import com.ruoyi.deeplearn.domain.DeepForecastResult;
import com.ruoyi.deeplearn.service.IDeepForecastResultService;

/**
 * 模型预测结构Service业务层处理
 * 
 * @author rww
 * @date 2024-09-15
 */
@Service
public class DeepForecastResultServiceImpl implements IDeepForecastResultService 
{
    @Autowired
    private DeepForecastResultMapper deepForecastResultMapper;

    /**
     * 查询模型预测结构
     * 
     * @param id 模型预测结构主键
     * @return 模型预测结构
     */
    @Override
    public DeepForecastResult selectDeepForecastResultById(Long id)
    {
        return deepForecastResultMapper.selectDeepForecastResultById(id);
    }

    /**
     * 查询模型预测结构列表
     * 
     * @param deepForecastResult 模型预测结构
     * @return 模型预测结构
     */
    @Override
    public List<DeepForecastResult> selectDeepForecastResultList(DeepForecastResult deepForecastResult)
    {
        return deepForecastResultMapper.selectDeepForecastResultList(deepForecastResult);
    }

    /**
     * 新增模型预测结构
     * 
     * @param deepForecastResult 模型预测结构
     * @return 结果
     */
    @Override
    public int insertDeepForecastResult(DeepForecastResult deepForecastResult)
    {
        return deepForecastResultMapper.insertDeepForecastResult(deepForecastResult);
    }

    /**
     * 修改模型预测结构
     * 
     * @param deepForecastResult 模型预测结构
     * @return 结果
     */
    @Override
    public int updateDeepForecastResult(DeepForecastResult deepForecastResult)
    {
        return deepForecastResultMapper.updateDeepForecastResult(deepForecastResult);
    }

    /**
     * 批量删除模型预测结构
     * 
     * @param ids 需要删除的模型预测结构主键
     * @return 结果
     */
    @Override
    public int deleteDeepForecastResultByIds(Long[] ids)
    {
        return deepForecastResultMapper.deleteDeepForecastResultByIds(ids);
    }

    /**
     * 删除模型预测结构信息
     * 
     * @param id 模型预测结构主键
     * @return 结果
     */
    @Override
    public int deleteDeepForecastResultById(Long id)
    {
        return deepForecastResultMapper.deleteDeepForecastResultById(id);
    }
}
